package com.grandbroad.eim.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

public class AlbumInfoAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    //三种类型的页面
    private int ALBUM_INFO=0;
    private int USER_INFO=1;
    private int VOD_LIST=2;
    @NonNull
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
        View view = null;
        if (getItemViewType(i) == ALBUM_INFO)
        {

        }
        else if (getItemViewType(i)==USER_INFO)
        {

        }
        else if (getItemViewType(i)==VOD_LIST)
        {

        }
            return null;
    }

    @Override
    public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int i) {

    }

    @Override
    public int getItemViewType(int position) {
        if (position == 0)
        {
            return ALBUM_INFO;
        }
        if (position == 1)
        {
            return USER_INFO;
        }
        if (position == 2)
        {
            return VOD_LIST;
        }
        return 0;
    }

    @Override
    public int getItemCount() {
        return 3;
    }



}
